package com.gitee.shigen.security.request;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * @author shigenfu
 * @date 2024/5/25 17:45
 */
@Data
public class PageRequest {

    /**
     * 当前页码
     */
    @Min(value = 1, message = "页码必须大于等于1")
    private Integer pageNum;

    /**
     * 每页条数
     */
    @Min(value = 1, message = "页容量必须大于等于1")
    @Max(value = 100, message = "页码必须小于等于100")
    private Integer pageSize;

}
